<?php
$sliders = Doctrine::getTable('slider')->findAll();
$html = '';
foreach ($sliders as $slider) {
    $html .=  '
        <li data-orbit-slide="headline-1">
            <div class="row">
                <div class="large-6 columns">
                    <img src="'.URL.'content/slider/'.$slider->portada->src.'" alt="Tower Technology" />
                </div>
                <div class="large-4 columns">
                    <h1>'.htmlentities($slider->getTitulo($lg)).'</h1>
                    <h2>'.htmlentities($slider->getLeyenda($lg)).'</h2>
                    <a href="'.URL.$lg.'/seccion/'.$slider->categoria->getUri($lg).'" class="button secondary" style="margin-top: 15px">'.$slider->categoria->getValue($lg).'</a>
                </div>
                <div class="large-2 columns"></div>
            </div>
        </li>
    ';
}
echo($html);
?>
